package co.fitstart.mobile.service;

import java.math.BigDecimal;
import java.util.List;

import co.fitstart.entity.user.Student;
import co.fitstart.entity.user.User;
import co.fitstart.entity.user.agent.Agent;
import co.fitstart.entity.user.agent.AgentDiscount;
import co.fitstart.entity.user.agent.AgentRecord;
import co.fitstart.entity.user.agent.OfflineAgent;

/**
 * 
 * @author mohanlan
 *
 */
public interface UserAgentService {
	
	/**
	 * 
	 * @param user
	 * @return
	 */
	public Agent get(User user);
	
	/**
	 * 
	 * @param agent
	 * @param account
	 * @param webchatId
	 */
	public void editAccount(Agent agent, String account, String realName);
	
	/**
	 * 
	 * @param agent
	 * @return
	 */
	public List<AgentDiscount> listDiscount(Agent agent);
	
	/**
	 * 
	 * @param code
	 * @return
	 */
	public AgentDiscount loadAgentDiscount(String code);
	
	/**
	 * 
	 * @param agent
	 * @return
	 */
	public List<AgentRecord> listAgentRecord(Agent agent);
	
	/**
	 * 
	 * @param agent
	 * @param offer
	 */
	public void withdraw(Agent agent, BigDecimal offer);
	
	/**
	 * 
	 * @param student
	 * @return
	 */
	public List<OfflineAgent> listOfflineAgent(Student student);
	
}
